Integrand size = 25, antiderivative size = 138 \[ \int \frac {\sec ^6(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^{3/2}} \, dx=-\frac {(3 a-b) \text {arctanh}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b+b \tan ^2(e+f x)}}\right )}{2 b^{5/2} f}-\frac {a \sec ^2(e+f x) \tan (e+f x)}{b (a+b) f \sqrt {a+b+b \tan ^2(e+f x)}}+\frac {(3 a+b) \tan (e+f x) \sqrt {a+b+b \tan ^2(e+f x)}}{2 b^2 (a+b) f} \]
-1/2*(3*a-b)*arctanh(b^(1/2)*tan(f*x+e)/(a+b+b*tan(f*x+e)^2)^(1/2))/b^(5/2 )/f-a*sec(f*x+e)^2*tan(f*x+e)/b/(a+b)/f/(a+b+b*tan(f*x+e)^2)^(1/2)+1/2*(3* a+b)*(a+b+b*tan(f*x+e)^2)^(1/2)*tan(f*x+e)/b^2/(a+b)/f
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 3.39 (sec) , antiderivative size = 259, normalized size of antiderivative = 1.88 \[ \int \frac {\sec ^6(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^{3/2}} \, dx=-\frac {(a+2 b+a \cos (2 (e+f x))) \sec ^8(e+f x) \left (-7 (a+b) \cos ^2(e+f x) \left (15 b^2+10 a b (2+\cos (2 (e+f x)))+a^2 (8+6 \cos (2 (e+f x))+\cos (4 (e+f x)))\right ) \operatorname {Hypergeometric2F1}\left (1,2,\frac {7}{2},-\frac {b \tan ^2(e+f x)}{a+b}\right )+4 b (a+2 b+a \cos (2 (e+f x)))^2 \, _3F_2\left (2,2,3;1,\frac {9}{2};-\frac {b \tan ^2(e+f x)}{a+b}\right ) \sin ^2(e+f x)+16 b \operatorname {Hypergeometric2F1}\left (2,3,\frac {9}{2},-\frac {b \tan ^2(e+f x)}{a+b}\right ) \sin ^2(e+f x) \left (4 (a+b)^2-7 a (a+b) \sin ^2(e+f x)+3 a^2 \sin ^4(e+f x)\right )\right ) \tan (e+f x)}{210 (a+b)^4 f \left (a+b \sec ^2(e+f x)\right )^{3/2}} \]
-1/210*((a + 2*b + a*Cos[2*(e + f*x)])*Sec[e + f*x]^8*(-7*(a + b)*Cos[e + f*x]^2*(15*b^2 + 10*a*b*(2 + Cos[2*(e + f*x)]) + a^2*(8 + 6*Cos[2*(e + f*x )] + Cos[4*(e + f*x)]))*Hypergeometric2F1[1, 2, 7/2, -((b*Tan[e + f*x]^2)/ (a + b))] + 4*b*(a + 2*b + a*Cos[2*(e + f*x)])^2*HypergeometricPFQ[{2, 2, 3}, {1, 9/2}, -((b*Tan[e + f*x]^2)/(a + b))]*Sin[e + f*x]^2 + 16*b*Hyperge ometric2F1[2, 3, 9/2, -((b*Tan[e + f*x]^2)/(a + b))]*Sin[e + f*x]^2*(4*(a + b)^2 - 7*a*(a + b)*Sin[e + f*x]^2 + 3*a^2*Sin[e + f*x]^4))*Tan[e + f*x]) /((a + b)^4*f*(a + b*Sec[e + f*x]^2)^(3/2))
Time = 0.32 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.04, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {3042, 4634, 315, 299, 224, 219}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sec ^6(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^{3/2}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\sec (e+f x)^6}{\left (a+b \sec (e+f x)^2\right )^{3/2}}dx\) |
\(\Big \downarrow \) 4634 |
\(\displaystyle \frac {\int \frac {\left (\tan ^2(e+f x)+1\right )^2}{\left (b \tan ^2(e+f x)+a+b\right )^{3/2}}d\tan (e+f x)}{f}\) |
\(\Big \downarrow \) 315 |
\(\displaystyle \frac {\frac {\int \frac {(3 a+b) \tan ^2(e+f x)+a+b}{\sqrt {b \tan ^2(e+f x)+a+b}}d\tan (e+f x)}{b (a+b)}-\frac {a \tan (e+f x) \left (\tan ^2(e+f x)+1\right )}{b (a+b) \sqrt {a+b \tan ^2(e+f x)+b}}}{f}\) |
\(\Big \downarrow \) 299 |
\(\displaystyle \frac {\frac {\frac {(3 a+b) \tan (e+f x) \sqrt {a+b \tan ^2(e+f x)+b}}{2 b}-\frac {(3 a-b) (a+b) \int \frac {1}{\sqrt {b \tan ^2(e+f x)+a+b}}d\tan (e+f x)}{2 b}}{b (a+b)}-\frac {a \tan (e+f x) \left (\tan ^2(e+f x)+1\right )}{b (a+b) \sqrt {a+b \tan ^2(e+f x)+b}}}{f}\) |
\(\Big \downarrow \) 224 |
\(\displaystyle \frac {\frac {\frac {(3 a+b) \tan (e+f x) \sqrt {a+b \tan ^2(e+f x)+b}}{2 b}-\frac {(3 a-b) (a+b) \int \frac {1}{1-\frac {b \tan ^2(e+f x)}{b \tan ^2(e+f x)+a+b}}d\frac {\tan (e+f x)}{\sqrt {b \tan ^2(e+f x)+a+b}}}{2 b}}{b (a+b)}-\frac {a \tan (e+f x) \left (\tan ^2(e+f x)+1\right )}{b (a+b) \sqrt {a+b \tan ^2(e+f x)+b}}}{f}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {\frac {\frac {(3 a+b) \tan (e+f x) \sqrt {a+b \tan ^2(e+f x)+b}}{2 b}-\frac {(3 a-b) (a+b) \text {arctanh}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)+b}}\right )}{2 b^{3/2}}}{b (a+b)}-\frac {a \tan (e+f x) \left (\tan ^2(e+f x)+1\right )}{b (a+b) \sqrt {a+b \tan ^2(e+f x)+b}}}{f}\) |
(-((a*Tan[e + f*x]*(1 + Tan[e + f*x]^2))/(b*(a + b)*Sqrt[a + b + b*Tan[e + f*x]^2])) + (-1/2*((3*a - b)*(a + b)*ArcTanh[(Sqrt[b]*Tan[e + f*x])/Sqrt[ a + b + b*Tan[e + f*x]^2]])/b^(3/2) + ((3*a + b)*Tan[e + f*x]*Sqrt[a + b + b*Tan[e + f*x]^2])/(2*b))/(b*(a + b)))/f
3.3.76.3.1 Defintions of rubi rules used
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a, b}, x] && !GtQ[a, 0]
Int[((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2), x_Symbol] :> Simp[d*x *((a + b*x^2)^(p + 1)/(b*(2*p + 3))), x] - Simp[(a*d - b*c*(2*p + 3))/(b*(2 *p + 3)) Int[(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && NeQ[2*p + 3, 0]
Int[((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_), x_Symbol] :> Sim p[(a*d - c*b)*x*(a + b*x^2)^(p + 1)*((c + d*x^2)^(q - 1)/(2*a*b*(p + 1))), x] - Simp[1/(2*a*b*(p + 1)) Int[(a + b*x^2)^(p + 1)*(c + d*x^2)^(q - 2)*S imp[c*(a*d - c*b*(2*p + 3)) + d*(a*d*(2*(q - 1) + 1) - b*c*(2*(p + q) + 1)) *x^2, x], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && LtQ[p, - 1] && GtQ[q, 1] && IntBinomialQ[a, b, c, d, 2, p, q, x]
Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*sec[(e_.) + (f_.)*(x_)]^(n_) )^(p_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Simp[ff/f Subst[Int[(1 + ff^2*x^2)^(m/2 - 1)*ExpandToSum[a + b*(1 + ff^2*x^2)^(n/2), x]^p, x], x, Tan[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ [m/2] && IntegerQ[n/2]
Leaf count of result is larger than twice the leaf count of optimal. \(3209\) vs. \(2(124)=248\).
Time = 12.25 (sec) , antiderivative size = 3210, normalized size of antiderivative = 23.26
-1/4/f/(a+b)/b^(7/2)/(a+b*sec(f*x+e)^2)^(3/2)*(-2*b^(7/2)*a*tan(f*x+e)*sec (f*x+e)^4+3*((b+a*cos(f*x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*ln(-4*(((b+a*cos(f *x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*b^(1/2)*cos(f*x+e)+b^(1/2)*((b+a*cos(f*x+ e)^2)/(1+cos(f*x+e))^2)^(1/2)-sin(f*x+e)*a+a+b)/(sin(f*x+e)-1))*a^2*b^2*se c(f*x+e)^2+2*((b+a*cos(f*x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*ln(-4*(((b+a*cos( f*x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*b^(1/2)*cos(f*x+e)+b^(1/2)*((b+a*cos(f*x +e)^2)/(1+cos(f*x+e))^2)^(1/2)-sin(f*x+e)*a+a+b)/(sin(f*x+e)-1))*a*b^3*sec (f*x+e)^2+3*((b+a*cos(f*x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*ln(4*(((b+a*cos(f* x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*b^(1/2)*cos(f*x+e)+b^(1/2)*((b+a*cos(f*x+e )^2)/(1+cos(f*x+e))^2)^(1/2)-sin(f*x+e)*a-a-b)/(sin(f*x+e)+1))*a^2*b^2*sec (f*x+e)^2+2*((b+a*cos(f*x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*ln(4*(((b+a*cos(f* x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*b^(1/2)*cos(f*x+e)+b^(1/2)*((b+a*cos(f*x+e )^2)/(1+cos(f*x+e))^2)^(1/2)-sin(f*x+e)*a-a-b)/(sin(f*x+e)+1))*a*b^3*sec(f *x+e)^2+3*((b+a*cos(f*x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*ln(-4*(((b+a*cos(f*x +e)^2)/(1+cos(f*x+e))^2)^(1/2)*b^(1/2)*cos(f*x+e)+b^(1/2)*((b+a*cos(f*x+e) ^2)/(1+cos(f*x+e))^2)^(1/2)-sin(f*x+e)*a+a+b)/(sin(f*x+e)-1))*a^2*b^2*sec( f*x+e)^3+2*((b+a*cos(f*x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*ln(-4*(((b+a*cos(f* x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*b^(1/2)*cos(f*x+e)+b^(1/2)*((b+a*cos(f*x+e )^2)/(1+cos(f*x+e))^2)^(1/2)-sin(f*x+e)*a+a+b)/(sin(f*x+e)-1))*a*b^3*sec(f *x+e)^3+3*((b+a*cos(f*x+e)^2)/(1+cos(f*x+e))^2)^(1/2)*ln(4*(((b+a*cos(f...
Time = 0.47 (sec) , antiderivative size = 524, normalized size of antiderivative = 3.80 \[ \int \frac {\sec ^6(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^{3/2}} \, dx=\left [-\frac {{\left ({\left (3 \, a^{3} + 2 \, a^{2} b - a b^{2}\right )} \cos \left (f x + e\right )^{3} + {\left (3 \, a^{2} b + 2 \, a b^{2} - b^{3}\right )} \cos \left (f x + e\right )\right )} \sqrt {b} \log \left (\frac {{\left (a^{2} - 6 \, a b + b^{2}\right )} \cos \left (f x + e\right )^{4} + 8 \, {\left (a b - b^{2}\right )} \cos \left (f x + e\right )^{2} + 4 \, {\left ({\left (a - b\right )} \cos \left (f x + e\right )^{3} + 2 \, b \cos \left (f x + e\right )\right )} \sqrt {b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \sin \left (f x + e\right ) + 8 \, b^{2}}{\cos \left (f x + e\right )^{4}}\right ) - 4 \, {\left (a b^{2} + b^{3} + {\left (3 \, a^{2} b + a b^{2}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \sin \left (f x + e\right )}{8 \, {\left ({\left (a^{2} b^{3} + a b^{4}\right )} f \cos \left (f x + e\right )^{3} + {\left (a b^{4} + b^{5}\right )} f \cos \left (f x + e\right )\right )}}, -\frac {{\left ({\left (3 \, a^{3} + 2 \, a^{2} b - a b^{2}\right )} \cos \left (f x + e\right )^{3} + {\left (3 \, a^{2} b + 2 \, a b^{2} - b^{3}\right )} \cos \left (f x + e\right )\right )} \sqrt {-b} \arctan \left (-\frac {{\left ({\left (a - b\right )} \cos \left (f x + e\right )^{3} + 2 \, b \cos \left (f x + e\right )\right )} \sqrt {-b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{2 \, {\left (a b \cos \left (f x + e\right )^{2} + b^{2}\right )} \sin \left (f x + e\right )}\right ) - 2 \, {\left (a b^{2} + b^{3} + {\left (3 \, a^{2} b + a b^{2}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \sin \left (f x + e\right )}{4 \, {\left ({\left (a^{2} b^{3} + a b^{4}\right )} f \cos \left (f x + e\right )^{3} + {\left (a b^{4} + b^{5}\right )} f \cos \left (f x + e\right )\right )}}\right ] \]
[-1/8*(((3*a^3 + 2*a^2*b - a*b^2)*cos(f*x + e)^3 + (3*a^2*b + 2*a*b^2 - b^ 3)*cos(f*x + e))*sqrt(b)*log(((a^2 - 6*a*b + b^2)*cos(f*x + e)^4 + 8*(a*b - b^2)*cos(f*x + e)^2 + 4*((a - b)*cos(f*x + e)^3 + 2*b*cos(f*x + e))*sqrt (b)*sqrt((a*cos(f*x + e)^2 + b)/cos(f*x + e)^2)*sin(f*x + e) + 8*b^2)/cos( f*x + e)^4) - 4*(a*b^2 + b^3 + (3*a^2*b + a*b^2)*cos(f*x + e)^2)*sqrt((a*c os(f*x + e)^2 + b)/cos(f*x + e)^2)*sin(f*x + e))/((a^2*b^3 + a*b^4)*f*cos( f*x + e)^3 + (a*b^4 + b^5)*f*cos(f*x + e)), -1/4*(((3*a^3 + 2*a^2*b - a*b^ 2)*cos(f*x + e)^3 + (3*a^2*b + 2*a*b^2 - b^3)*cos(f*x + e))*sqrt(-b)*arcta n(-1/2*((a - b)*cos(f*x + e)^3 + 2*b*cos(f*x + e))*sqrt(-b)*sqrt((a*cos(f* x + e)^2 + b)/cos(f*x + e)^2)/((a*b*cos(f*x + e)^2 + b^2)*sin(f*x + e))) - 2*(a*b^2 + b^3 + (3*a^2*b + a*b^2)*cos(f*x + e)^2)*sqrt((a*cos(f*x + e)^2 + b)/cos(f*x + e)^2)*sin(f*x + e))/((a^2*b^3 + a*b^4)*f*cos(f*x + e)^3 + (a*b^4 + b^5)*f*cos(f*x + e))]
\[ \int \frac {\sec ^6(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^{3/2}} \, dx=\int \frac {\sec ^{6}{\left (e + f x \right )}}{\left (a + b \sec ^{2}{\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx \]
Time = 0.20 (sec) , antiderivative size = 161, normalized size of antiderivative = 1.17 \[ \int \frac {\sec ^6(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^{3/2}} \, dx=\frac {\frac {\tan \left (f x + e\right )^{3}}{\sqrt {b \tan \left (f x + e\right )^{2} + a + b} b} - \frac {3 \, {\left (a + b\right )} \operatorname {arsinh}\left (\frac {b \tan \left (f x + e\right )}{\sqrt {{\left (a + b\right )} b}}\right )}{b^{\frac {5}{2}}} + \frac {4 \, \operatorname {arsinh}\left (\frac {b \tan \left (f x + e\right )}{\sqrt {{\left (a + b\right )} b}}\right )}{b^{\frac {3}{2}}} + \frac {2 \, \tan \left (f x + e\right )}{\sqrt {b \tan \left (f x + e\right )^{2} + a + b} {\left (a + b\right )}} + \frac {3 \, {\left (a + b\right )} \tan \left (f x + e\right )}{\sqrt {b \tan \left (f x + e\right )^{2} + a + b} b^{2}} - \frac {4 \, \tan \left (f x + e\right )}{\sqrt {b \tan \left (f x + e\right )^{2} + a + b} b}}{2 \, f} \]
1/2*(tan(f*x + e)^3/(sqrt(b*tan(f*x + e)^2 + a + b)*b) - 3*(a + b)*arcsinh (b*tan(f*x + e)/sqrt((a + b)*b))/b^(5/2) + 4*arcsinh(b*tan(f*x + e)/sqrt(( a + b)*b))/b^(3/2) + 2*tan(f*x + e)/(sqrt(b*tan(f*x + e)^2 + a + b)*(a + b )) + 3*(a + b)*tan(f*x + e)/(sqrt(b*tan(f*x + e)^2 + a + b)*b^2) - 4*tan(f *x + e)/(sqrt(b*tan(f*x + e)^2 + a + b)*b))/f
\[ \int \frac {\sec ^6(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^{3/2}} \, dx=\int { \frac {\sec \left (f x + e\right )^{6}}{{\left (b \sec \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}}} \,d x } \]
Timed out. \[ \int \frac {\sec ^6(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^{3/2}} \, dx=\int \frac {1}{{\cos \left (e+f\,x\right )}^6\,{\left (a+\frac {b}{{\cos \left (e+f\,x\right )}^2}\right )}^{3/2}} \,d x \]